package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.Noticecollect;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 通知收藏表 Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-30
 */
@Mapper
public interface NoticecollectMapper extends BaseMapper<Noticecollect> {

    List<Noticecollect> selectByNotifiedId(int notifiedId);

    int delNoticeCollect(@Param("destroyTime") LocalDateTime destroyTime,@Param("noticeCollectId") int noticeCollectId);

    List<Noticecollect> selectAll();
}
